<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/miniblog.js"></script>
<div class="content_holder">
<div class="content no_bg">
  <!--wrap_index_r-->
  <div class="wrap_index_r">
  <include file="__THEME__/apps" />
      <div class="Box_content">
          {:Addons::hook('home_index_right_top')}
          {:W('RelatedUser',array('async'=>1))}
        <div class="right_box lineS_btm">
          <h2><a href="javascript:void(0)" onclick="$('.quick_win').show()" class="right" style="font-weight:400;font-size:12px">添加</a>关注的话题</h2>
          <dl style="display:none;" class="quick_win">
          	<dt></dt>
            <dd>
            <a href="javascript:void(0)" onclick="$('.quick_win').hide()" class="del" title="关闭"></a>
            <p>
              <input type="text" class="text" name="quick_name" style=" width:130px;display:block;margin:0 0 5px 0"/>
              <input type="button" onclick="addFollowTopic()" value="保存" class="btn_b" />
            </p>
            <p class="cGray2">请添加想关注的话题</p>
            </dd>
          </dl>
          <ul class="topic_list" rel="followTopicArea">
            <volist id="vo" name="followTopic">
              <li onmouseover="$(this).find('.del').show()" onmouseout="$(this).find('.del').hide()"><a class="del right" style="display:none" title="删除" href="javascript:void(0)" onclick="deleteFollowTopic(this,'{$vo.topic_id}')"></a><a href="{:U('home/user/topics',array('k'=>urlencode($vo['name'])))}" title="{$vo.name}">{$vo.name}</a></li>
            </volist>
          </ul>
        </div>
        <div class="right_box">
          {:W('HotTopic', array('type'=>'recommend','limit'=>5))}
          {:W('HotTopic', array('type'=>'auto','limit'=>5))}
          
          
      </div>
          {:Addons::hook('home_index_right_bottom')}
        <php>if (Addons::requireHooks('home_index_right_advert')) {</php>
        	{:Addons::hook('home_index_right_advert', array($ts['ad']['right']))}
        <php>} else {</php>
			<volist name="ts['ad']['right']" id="vo">
			<div class="ad_right"><div class="ke-post">{$vo.content}</div></div>
			</volist>
		<php>}</php>
      </div>
  </div>
  <!--wrap_index_r end-->
  <div class="wrap_index_l">
      <div class="tab-menu">
       	  <a href="javascript:void(0)" onclick="ui.sendmessage();" class="btn_b right">发私信</a>
		  <include file="_tab" />
      </div>
      <div style=" overflow: hidden">
        <ul class="feed_list">
       	  <volist id="vo" name="data">
            <li class="lineD_btm" id="notify_{$vo.notify_id}">
              <div class="userPic"><space uid="vo['from']" target="_blank">{uavatar=m}</space></div>
              <div class="feed_c hover">
                <h3>
                  <div class="right alR" style="line-height:20px">
                    <div class="left"><em>{$vo.ctime|friendlyDate}</em></div>
                    <div class="left"><a style="margin-top: 2px" class="del" href="javascript:deleteNotify({$vo.notify_id})" title="删除"></a></div>
                  </div>
                  <span class="lh20 f12px">{$vo.title}</span></h3>
                <div class="feed_c_btm">
                  {$vo.body}
                </div>
				<div style="margin-top:15px"> {$vo.other} </div>
                <php>if(false && in_array($vo['type'], array('home_addComment','home_replyComment'))) {</php>
				<div class="feed_quote feed_wb" style="display:none;">
				    <img src="__THEME__/images/zw_img.gif" class="q_ico_arrow2">
                    <div class="q_tit"><img src="__THEME__/images/zw_img.gif" class="q_tit_l"></div>
                    <div class="q_con">
                    <div id="comment_list_before_1459" class="new_position">
                    <form method="post" action="">
                      <input type="hidden" name="notify_id" value="{$vo['notify_id']}">
                      <input type="hidden" id="replyid_450" name="reply_comment_id" value="450">    	
                      <a target_set="comment_450" onclick="ui.emotions(this)" href="javascript:void(0)" class="faceicon1"></a>
                      <textarea id="comment_450" style="overflow: hidden; height: 15px;" rows="1" name="comment_content" class="left text"></textarea>
                      <input type="submit" style="" value="确定" class="N_but">
                    </form>
                    </div>
                    <div class="c"></div>
                    </div>
                    <div class="q_btm"><img src="__THEME__/images/zw_img.gif" class="q_btm_l"></div>
                </div>
                <php>}</php>
              </div>
            </li>
		  </volist>
        </ul>
      </div>
      <div class="c"></div>
      <div class="page">{$html}</div>
  </div>
</div>
</div>
<!-- 内容 end --> 
<script>
	function deleteNotify(notify_id){
		$.post( U('home/Message/delnotify'),{notify_id:notify_id},function(txt){
			if(txt){
				$("#notify_"+notify_id).slideUp("fast",function(){
					$(this).remove();
 				}); 
			}else{
				alert('删除失败');
			}
		});
	}

</script>	
<include file="__THEME__/footer" /> 